require('page/common/header/index.js');
var _account_servcie = require('service/account-service.js');

var catalog_main = {
    init: function () {
        this.loadAccountInfo ();
        this.bindEvents();
        return this;
    },
    bindEvents : function() {
    },
    loadAccountInfo : function(){
        _account_servcie.checkLogin(
            function(res){
                $('#WelcomeContent').text('欢迎您,' + res.username + '用户!');
            },
            function(errMsg){
                $('#WelcomeContent').text('Welcome');
            }
        );
    }
}
module.exports = catalog_main.init();